flowchart LR
A[User Query] --> B[Query Embedding]
B --> C[Vector Store<br/>Retrieval]
C --> D[Top-K Context<br/>Chunks]
D --> E[Orchestrator<br/>Formats Prompt]
E --> F[LLM Generator]
F --> G[Answer +<br/>Source Citations]
subgraph "Knowledge Base (Offline)"
H[Raw Documents] --> I[Chunking &<br/>Cleaning]
I --> J[Generate<br/>Embeddings]
J --> K[(Vector Store)]
end
C -.-> K
style A fill:#9B8EC0,stroke:#1C355E,color:#fff
style B fill:#00C9A7,stroke:#1C355E,color:#fff
style C fill:#00C9A7,stroke:#1C355E,color:#fff
style D fill:#00C9A7,stroke:#1C355E,color:#fff
style E fill:#FF7A5C,stroke:#1C355E,color:#fff
style F fill:#FF7A5C,stroke:#1C355E,color:#fff
style G fill:#1C355E,stroke:#1C355E,color:#fff
style H fill:#9B8EC0,stroke:#1C355E,color:#fff
style I fill:#9B8EC0,stroke:#1C355E,color:#fff
style J fill:#9B8EC0,stroke:#1C355E,color:#fff
style K fill:#1C355E,stroke:#1C355E,color:#fff